<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档中心 - 目录索引测试</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f8f9fa;
        }
        .container {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
            border-bottom: 2px solid #28a745;
            padding-bottom: 10px;
        }
        .success {
            background: #d1ecf1;
            color: #0c5460;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            border: 1px solid #bee5eb;
        }
        .feature-list {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            margin: 20px 0;
        }
        .nav-link {
            text-decoration: none;
            color: inherit;
        }

        .nav-link:visited {
            color: inherit;
        }

        .nav-link:hover {
            color: #007BFF;
        }

        .nav-link:active {
            color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>📚 文档中心</h1>

        <div style="margin-top: 30px;">
            <a class="nav-link" href="/">🏠 返回首页</a> | 
            <a class="nav-link" href="/docs">📘 使用文档</a> | 
            <a class="nav-link" href="/about">ℹ️ 关于</a> | 
            <a class="nav-link" href="/welcome">🎉 欢迎文档</a> | 
            <a class="nav-link" href="/404">⚠️ 404页面</a> | 
            <a class="nav-link" href="/500">💥 500页面</a>
        </div>

        <div class="success">
            ✅ 如果你能看到这个页面，说明服务器的目录索引功能正常工作。
        </div>

        <div class="feature-list">
            <h3>🎯 测试的功能：</h3>
            <ul>
                <li>访问 <code>/docs</code> 自动查找 <code>/docs/index.html</code></li>
                <li>访问 <code>/docs/</code> 自动查找 <code>/docs/index.html</code></li>
                <li>目录索引文件自动发现</li>
            </ul>
        </div>
    </div>
</body>
</html>